//package com.aistar.interceptor;
//
//import com.aistar.xfxy.interceptor.LoginInterceptor;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//
////实现WebMvcConfigurer，是自带排除静态资源的
////允许在上下文中注册额外的bean或导入其他配置类
//@Configuration
//public class LoginConfig implements WebMvcConfigurer {
//
//    //注册拦截器，自定义拦截器需要添加在这
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        //addPathPatterns 用来设置拦截路径
//        //excludePathPatterns 用来设置白名单，即不需要拦截的路径
//        registry.addInterceptor(new LoginInterceptor()).addPathPatterns("/**")
//                .excludePathPatterns("/customer/login/**","/login/**","/logincode/**","/footprint/**","/home/index","/product/**","product_list/select","/sendcode","/retrieve"
//                ,                     "/seckill","/seckill_product_list/select","/css/**","/js/**","/images/**","/uploads/**","/layui/**","/dist/**","/footprint/all","/miaosha");
//
//
//
//    }
//
//    //配置静态资源
//    @Override
//    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//
//    }
//}
